<template>
    <div class="m-style have-nav">
        <div>
            <m_pageList
                ref="pageList"
                :url="url"
                :cols="cols"
                :list-cond="listCond"
            >
                <template v-slot="scope">
                    <strong>{{ scope.row.number }}</strong>
                </template>
            </m_pageList>

        </div>

    </div>
</template>

<script>
import m_pageList from "@/uitl/m_pageList";
import {API_URL} from "@/config/urlInfo";

export default {
    name: "maintainList",
    props: ["ledgerId"],
    components: {
        m_pageList,
    },
    data() {
        return {
            number: "",
            url: API_URL.aloneLedgerMaintain,
            cols: {
                show: [
                    {title: '设备名称', field: 'name'},
                    {title: '品牌', field: 'brand'},
                    {title: '故障现象', field: 'malfunction'}
                ],
                hide: [
                    {title: '维修费用', field: 'price'},
                    {title: '维修工时', field: 'workHours'},
                    {title: '维修开始时间', field: 'startDate'},
                    {title: '维修期限', field: 'endDate'},
                    {title: '维修完成时间', field: 'doneDate'}
                ]
            },
            show: true,
            loading: false,
            listCond: {ledgerId: this.ledgerId}
        }
    },
}
</script>

<style scoped>

</style>